

function* gen() {

    yield 1;
    yield 2;
    yield 3;
}